package com.eppear.jpfm.framework.constants;

import com.eppear.jpfm.framework.common.ConfigConstants;

/**
 * @ClassName Constants
 * @Description
 *         系统常量
 * @author JianFeng Zhang(张建锋)
 * @date   2016-12-13 上午12:37:49
 *
 */
public class Constants extends ConfigConstants implements StatusConstants,ErrorConstants,DBCol{
	
	public static final String SYS_INNER_ERROR = "系统内部异常";
	
	public static final String SYS_CLOSE_ERROR ="系统维护中";
	
	/**
	 * 系统登录页
	 */
	public static final String LOGIN_JSP_NAME = "/index";
	
	/**
	 * 系统编码
	 */
	public static final String SYS_ENCODE="UTF-8";
	
	/**
	 * 系统错误KEY
	 */
	public static final String ERROR_TO_JSP_KEY = "errorMessage";

	/**
	 * 操作人员缓存KEY
	 */
	public static final String OPER_LIST_CACHE_KEY = "operListCache";
	
	/**
	 * 当前用户权限集合key
	 */
	public static final String OPER_AUTH_LIST_KEY = "operAuthList";

	/**
	 * 用户session Key
	 */
	public static final String SESSION_USER = "SESSION_USER";

	/**
	 * 字典缓存 key
	 */
	public static final String CACHE_DIC_KEY = "cacheDic";

	/**
	 * 系统参数缓存key
	 */
	public static final String CACHE_SYS_PARAM_KEY = "cacheSysParam";

	/**
	 * 当前操作的叶子菜单ID
	 */
	public static final String CURRENT_MENU_LEAF_ID = "currentLeafMenuId";

	/**
	 * 当前操作的叶子菜单对象的URL
	 */
	public static final String CURRENT_MENU_LEAF_URL = "currentLeafMenuURL";
	
	/**
	 * UNICODE 宽度
	 */
	public static final Integer UNICODE_PART_LEN=5;
	
	public static final String VERSION="version";//版本对象
	
	public static final String PARAM_KEY="paramKey";//参数对象
	
	/**
	 * 查询分页,数据的起始行
	 */
	public static final Integer PAGE_DATA_START=0;
	/**
	 * 查询分页,每页的数据行数
	 */
	public static final Integer PAGE_DATA_LENGTH=0;
	/**
	 * 一级菜单集合
	 */
	public static final String ONE_LEVEL_MENU_LIST="oneLevelMenuList";
	
	/**
	 * 二级菜单
	 */
	public static final String SECOND_LEVEL_MENU_LIST="secondLevelMenuList";
	
	/**
	 * 三级菜单
	 */
	public static final String THREE_LEVEL_MENU_LIST="threeLevelMenuList";
	
	
	public static final String IPHONE = "iPhone";
	public static final String ANDROID = "Android";
	
	public static final String DB_DIALECT_CLASS="dialectClass";//数据库方言CLASS key
	
	public static final String ENT_DROP_LIST="entDropList";//企业下拉列表
	
	public static final long  MAX_UPLOAD_SIZE=Long.valueOf("314572800");//上传文件的最大值(300M)
	
	public static final String FILE_SEPARATOR = System.getProperty("file.separator");//文件分隔符
	
	
	public static final String QRY_ENT_AND_SON_SIGN="QRY_ENT_AND_SON_SIGN";//查询企业及下属企业信息 标记
	
	
	public static final String UPLOAD_FILE_TYPE="fileType";//上传文件类型
	
	public static final String UPLOAD_FILE_PIC="pic";//上传文件类型(图片)
	
	public static final String UPLOAD_FILE_APK="apk";//上传文件类型(apk)
	
	public static final String UPLOAD_FILE_ENT="ent";//上传文件类型(企业信息)
	
	public static final String UPLOAD_FILE_OTHER="other";//上传文件类型(其他)
	
	/** 应用操作权限集*/
	public static final String APP_OPERRIGHTS="operRights";
	/** 应用状态Key*/
	public static final String APP_STATUS="appStatus"; 
	
	/** 微信账户缓存Key名*/
	public static final String WX_ACCOUNT_LISTMAP="wxAccListMap";
	/** 微信ACCESS_TOKENKey名*/
	public static final String WX_ACCESS_TOKEN_LISTMAP="wxACTListMap";
	
	/** 微信TOKEN的有效期,单位为秒*/
	public static final int WX_EXPIRES_IN=7200;
	
}
